$OpenBSD: patch-kopete_chatwindow_CMakeLists_txt,v 1.2 2014/07/09 20:03:27 zhuk Exp $
Fix linking.
--- kopete/chatwindow/CMakeLists.txt.orig	Thu Apr 17 11:51:13 2014
+++ kopete/chatwindow/CMakeLists.txt	Fri Jun 27 18:45:14 2014
@@ -34,7 +34,7 @@ set(chattexteditpart_PART_SRCS chattexteditpart.cpp )
 kde4_add_plugin(chattexteditpart WITH_PREFIX ${chattexteditpart_PART_SRCS})
 
 
-target_link_libraries(chattexteditpart kopete kopetechatwindow_shared ${KDE4_KPARTS_LIBS} )
+target_link_libraries(chattexteditpart kopetechatwindow_shared kopete ${KDE4_KPARTS_LIBS} )
 
 install(TARGETS chattexteditpart  DESTINATION ${PLUGIN_INSTALL_DIR})
 
@@ -47,7 +47,7 @@ set(kopete_chatwindow_PART_SRCS chatview.cpp kopetecha
 kde4_add_plugin(kopete_chatwindow ${kopete_chatwindow_PART_SRCS})
 
 
-target_link_libraries(kopete_chatwindow  ${KDE4_KDEUI_LIBS} kopete kopetechatwindow_shared ${KDE4_KHTML_LIBS} ${QT_QT3SUPPORT_LIBRARY})
+target_link_libraries(kopete_chatwindow  kopete kopetechatwindow_shared ${KDE4_KHTML_LIBS} ${KDE4_KDEUI_LIBS} ${QT_QT3SUPPORT_LIBRARY})
 
 install(TARGETS kopete_chatwindow  DESTINATION ${PLUGIN_INSTALL_DIR})
 
@@ -60,7 +60,7 @@ set(kopete_emailwindow_PART_SRCS kopeteemailwindow.cpp
 kde4_add_plugin(kopete_emailwindow ${kopete_emailwindow_PART_SRCS})
 
 
-target_link_libraries(kopete_emailwindow  ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KHTML_LIBS} kopete kopetechatwindow_shared)
+target_link_libraries(kopete_emailwindow  kopete kopetechatwindow_shared ${KDE4_KDEUI_LIBS} ${KDE4_KPARTS_LIBS} ${KDE4_KHTML_LIBS})
 
 install(TARGETS kopete_emailwindow  DESTINATION ${PLUGIN_INSTALL_DIR})
 
